<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>缩放</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .outer {
            width: 200px;
            height: 200px;
            border: 2px solid black;
            margin: 0 auto;
            margin-top: 100px;
            position: relative;
            transform-style: preserve-3d;
            perspective: 500px;
            perspective-origin: 80px 80px;

        }
        .inner {
            width: 200px;
            height: 200px;
            background-color: skyblue;
            /*scaleZ影响的不是厚度,因为html没有厚度，所以其影响的是景深,景深=景深/scaleZ */
            /* 所以scaleZ用的非常少 */
            /* transform: scaleZ(3) rotateX(0deg);*/
            /* 3d是x,y,z*/
            /* transform: scale3d() */
    }
</style>
</head>
<body>
<div class="outer">
    <div class="inner">
        你好啊
    </div>
</div>
</body>
</html>